Retrospective commit from 2009-10-05.
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Jan 2010 11:22:52 +0000 (06:22 -0500)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Jan 2010 11:22:52 +0000 (06:22 -0500)
commitaa60a2d3a7f2d769a3261f534774d4798031eb5d
tree1f72b18e24fda4a6c448c3c42450a6320a9efb90
parent3ef7fa493a71287fc058327219815e4b3546e934
Retrospective commit from 2009-10-05.

Continue working on paragraph base direction.
Support per-buffer default paragraph direction.

 buffer.h (struct buffer): New member paragraph_direction.
 buffer.c (init_buffer_once): Initialize it.
 (syms_of_buffer): Declare Lisp variables
 default-paragraph-direction and paragraph-direction.
 dispextern.h (struct it): New member paragraph_embedding.
 xdisp.c (init_iterator): Initialize it from the buffer's value
 of paragraph-direction.
 <Qright_to_left, Qleft_to_right>: New variables.
 (syms_of_xdisp): Initialize and staticpro them.
 (set_iterator_to_next, next_element_from_buffer): Use the value of
 paragraph_embedding to determine the paragraph direction.
 bidi.c (bidi_line_init): Fix second argument to
 bidi_set_sor_type.
 (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.
 (bidi_get_next_char_visually): Record the last character of the
 separator in separator_limit, not the character after that.
 (bidi_find_paragraph_start): Accept character and byte positions
 instead of the whole iterator stricture.  All callers changed.
src/ChangeLog.bidi
src/bidi.c
src/buffer.c
src/buffer.h
src/dispextern.h
src/xdisp.c